package com.example.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("collect")
public class Collect {

    @TableId(type=IdType.AUTO)
    private Integer id;
    private Integer itemId;
    private Integer userId;
    private String time;

    @TableField(exist = false)
    private Item item;

    @TableField(exist = false)
    private User user;
}